Learning Objectives

After completing this lesson, you'll be able to:

Video

Resources

Introduction

You can also use the LineBuilder to create polygons from points.

Exercise

  1. Open FME Workbench 2022.0 or later.
  2. Click Blank Workspace to start a new workspace.
  3. Click Readers > Add Reader and set Format to CSV (Comma-Separated Value).
  4. Click the ellipsis button [...] and select the Neighborhoods.csv file.
  5. Set the Coord. System to LL84.
  6. You can decide how to generate points using the methods covered earlier in the course: reader parameters or a VertexCreator.
  7. Add a LineBuilder transformer to the canvas connecting it to either the CSV reader or the VertexCreator, depending on the method you chose to get the points.
  8. In the LineBuilder parameters, set Group Processing > Group By to NeighbourhoodName. If the last point is the same as the first, then a polygon is automatically created. In FME 2018 or older, the Group By option is not available. Use the Connection Break Attribute instead.Group By NeighborhoodName
  9. Run the workspace and inspect the results.

Results

Polygons shown on the map

The output of polygons using any of the three methods and a LineBuilder transformer. Stylized in FME Data Inspector using map tiles by Stamen Design, under CC-BY-3.0. Data by OpenStreetMap, under CC-BY-SA.